package com.ysjy.course.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wkbb.common.handler.JsonUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("机构教师")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class YsTeacher implements Serializable {
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("ID")
    private Long orgId;
    @ApiModelProperty("真实姓名")
    private String realName;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("性别 0保密 1男 2女")
    private Integer sex;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("学段 1幼儿园 2小学 3中职 4初中 5高中 6高职 7本科 8培训学校")
    private Integer season;
    @ApiModelProperty("教师简介")
    private String introduce;
    @ApiModelProperty("资质证书（多个,号分隔）")
    private String qualificationCertificates;
    @ApiModelProperty("教学成果")
    private String content;
    @ApiModelProperty("教学履历 链接地址")
    private String resumeUrl;
    @ApiModelProperty("状态 1启用 0禁用")
    private Boolean enabled;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("创建时间")
    private Date createTime;

    public static void main(String[] args) {
        YsTeacher teacher = new YsTeacher();
        teacher.setRealName("刘志鹏");
        teacher.setNickname("刘总");
        teacher.setMobile("13613020696");
        teacher.setPassword("e10adc3949ba59abbe56e057f20f883e");
        teacher.setSex(1);
        teacher.setAvatar("");
        teacher.setSeason(4);
        teacher.setAvatar("https://qiniu.childrenonline.cn/avatar/teacher_male.png");
        teacher.setIntroduce("教师简介教师简介");
        teacher.setQualificationCertificates("https://qiniu.childrenonline.cn/avatar/teacher_male.png,https://qiniu.childrenonline.cn/avatar/teacher_male.png");
        teacher.setContent("教学成果教学成果");
        teacher.setResumeUrl("https://qiniu.childrenonline.cn/avatar/teacher_male.png");
        teacher.setEnabled(true);
        System.out.println(JsonUtil.objectToJson(teacher));
    }
}
